SELECT 
    MAX(MIN(c4)) OVER(PARTITION BY c8 ORDER BY c1 RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING), c8 
FROM "t_alltype.parquet" 
GROUP BY c1,c8
